/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.ui.undo.impl;

import java.awt.Color;
import java.awt.geom.Point2D;

import who.tmap.ui.undo.UndoAction;

public class UndoActionImpl implements UndoAction {

	private int action;
	private Object object;
	private Point2D anchorPt;
	private Point2D dragPt;	
	private Color color;
	private int handleIdx;
	
	public UndoActionImpl( int action, Object object ) {
		this.action =action;
		this.object =object;
	}
	
	public UndoActionImpl( int action, Object object, Color color ) {
		this.action =action;
		this.object =object;
		this.color =color;
	}	
	
	public UndoActionImpl( int action, Object object, Point2D anchorPt, Point2D dragPt ) {
		this.action =action;
		this.object =object;
		this.anchorPt =anchorPt;
		this.dragPt =dragPt;
	}	
	
	public UndoActionImpl( int action, Object object, Point2D anchorPt, Point2D dragPt, int handleIdx ) {
		this.action =action;
		this.object =object;
		this.anchorPt =anchorPt;
		this.dragPt =dragPt;
		this.handleIdx =handleIdx;
	}		
	
	public int getAction() {
		return action;
	}
	
	public void setAction(int action) {
		this.action = action;
	}
	
	public Object getObject() {
		return object;
	}
	
	public void setObject(Object object) {
		this.object = object;
	}

	public Point2D getAnchorPt() {
		return anchorPt;
	}

	public void setAnchorPt(Point2D anchorPt) {
		this.anchorPt = anchorPt;
	}

	public Point2D getDragPt() {
		return dragPt;
	}

	public void setDragPt(Point2D dragPt) {
		this.dragPt = dragPt;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public int getHandleIdx() {
		return handleIdx;
	}

	public void setHandleIdx(int handleIdx) {
		this.handleIdx = handleIdx;
	}
	
}
